<?php

use Muyuxuanpay\excel\Excel;
use Muyuxuanpay\expressbird\ExpressDelivery;
use Muyuxuanpay\position\Position;
use Muyuxuanpay\time\MuTime;

require_once './vendor/autoload.php';
//$header = [
//    ['field'=>"name",'text'=>"名字","width"=>20,"setARGB"=>"FFFF0000"],
//    ['field'=>"id",'text'=>"ID","width"=>30],
//];
//$data = [
//    [
//        'id'=>1,
//        'name'=>'你好',
//    ],
//    [
//        'id'=>2,
//        'name'=>'你不好',
//    ],
//];
//$res = Excel::export($header,$data);
//$ip = '182.138.139.87';
//$res = Position::getPositionThree($ip);
//
//echo "<pre>";
//print_r($res);
//exit;
//$obj = new ExpressDelivery('1812009','f6857022-020f-4bca-8a4a-f2fdde4d7691');
////$res = $obj->query("SF","SF1449801169004",'1608');
////$res = $obj->SubscriptionTrajectory("SF","SF1449801169004",'1608');
//$res = $obj->queryMap("SF","SF1449801169004",'1608','',[],[],[
//    'IsReturnRouteMap'=>true
//]);
//echo "<pre>";
//var_dump("2022-02-28");
//exit;
list($start,$end) = MuTime::getYesterDay();
echo "<pre>";
print_r($start."|".$end);
exit;
